<template>
    <div class="size-container">
      <h2>{{title || ''}} <span class="h2__more more fr" v-if="showMore"><a :href="moreHref">更多>></a></span></h2>
      <div class="container__main clearfix">
        <slot></slot>
      </div>
    </div>
</template>

<script>
  export default {
    name: "SizeContainer",
    props: {
      title: String,
      showMore: Boolean,
      moreHref: String
    },
  }
</script>

<style scoped>
  h2 {
    font-size: 18px;
    position: relative;
    padding-left: 15px;
  }
  h2:after {
    content: '';
    border-left: 4px solid #f29838;
    position: absolute;
    top: 2px;
    left: 0;
    height: 22px;
  }
  .h2__more{
    font-weight: normal;
    cursor: pointer;
  }
  .container__main {
    padding: 10px 0;
  }
</style>
